package com.dongdongshop.service;

import com.dongdongshop.pojo.Cart;

import java.util.List;

public interface CartServiceI {

    List<Cart> addToCart(List<Cart> cartList, Long itemId, Integer num);

    List<Cart> findCartListFromRedis(String username);

    void addToCartRedis(List<Cart> cartList, String username);

    List<Cart> mergeCarList(List<Cart> cartsCookie, List<Cart> cartsRedis);
}
